package com.beauty.dressing.module.mine.activity;

import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.TextView;

import com.framework.common.utils.ICommonUtil;
import com.beauty.dressing.R;
import com.beauty.dressing.common.base.BaseActivity;

public class ChangePhoneActivity extends BaseActivity {
    private Button mNextBtn;
    private EditText mPhoneEdit;
    private TextView original_phone;//原手机号

    @Override
    public void setContentView() {
        setContentView(R.layout.activity_change_password);
//        setContentView(R.layout.regist_input);
    }

    @Override
    public void findView() {
        TextView title_txt = (TextView) context.findViewById(R.id.title_txt);
        title_txt.setText("更换手机号码");
        context.findViewById(R.id.left_img_btn).setOnClickListener(this);
        findViewById(R.id.common_title_root).setBackgroundResource(R.drawable.bg_title);
        ImageButton leftBtn = (ImageButton) findViewById(R.id.left_img_btn);
        leftBtn.setImageResource(R.drawable.return_back);
        leftBtn.setOnClickListener(this);
        mNextBtn = (Button) findViewById(R.id.login_btn);
        mNextBtn.setOnClickListener(this);
        mPhoneEdit = (EditText) findViewById(R.id.phone_edit);
        findViewById(R.id.getSMSCode).setOnClickListener(this);
    }

    @Override
    public void initData() {

    }

    @Override
    public void onClick(View v) {
        if (ICommonUtil.isFastDoubleClick()) return;
        switch (v.getId()) {
            case R.id.left_img_btn:
                finish();
                break;
            case R.id.login_btn://下一步
//                String inputWords = mPhoneEdit.getText().toString().trim();
//                if (!MatcherUtil.isPhoneNumberValid(inputWords)) {
//                    showToast(ResUtil.getString(R.string.phone_invalid));
//                    return;
//                }
//                InputIdentifyActivity.startActivity(context, inputWords);
                break;
            case R.id.getSMSCode://获取验证码
                break;
        }
    }

}
